package com.jieshen.JDBC;

import com.jieshen.JDBC.Dao.UploadFileImpl;
import com.jieshen.JDBC.domain.UserUploadFile;
import com.jieshen.JDBC.utils.JDBCUtils;
import org.junit.Test;

import java.io.IOException;
import java.util.List;
import java.util.Properties;

public class test {
    @Test
    public void pro(){
        try {
            Properties pro = new Properties();
            pro.load(JDBCUtils.class.getClassLoader().getResourceAsStream("druid.properties"));
            System.out.println(pro);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    @Test
    public void UploadFileImpl(){
        UploadFileImpl uploadFile = new UploadFileImpl();
        List<UserUploadFile> allUploadFile = uploadFile.getAllUploadFile();
        for (UserUploadFile userUploadFile : allUploadFile) {
            System.out.println(userUploadFile);
        }

    }
}
